/**search.less**/
page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 32rpx;
  padding-bottom: 32rpx;
}

.page-title {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 48rpx;
  color: #1a1a1a;
}

.search-box {
  position: relative;
  margin-bottom: 40rpx;
}

.search-input {
  width: 100%;
  padding: 24rpx 40rpx 24rpx 96rpx;
  border-radius: 24rpx;
  border: none;
  font-size: 32rpx;
  box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
  background-color: white;
}

.search-icon {
  position: absolute;
  left: 32rpx;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 40rpx;
}

.card {
  background: #fff;
  border-radius: 24rpx;
  padding: 32rpx;
  margin-bottom: 32rpx;
  box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.05);
  position: relative;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}

.font-semibold {
  font-weight: 600;
  font-size: 32rpx;
}

.clear-btn {
  display: flex;
  align-items: center;
  font-size: 28rpx;
  color: #666;
}

.clear-icon {
  margin-right: 8rpx;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
}

.history-tag {
  background-color: #f0f0f0;
  padding: 12rpx 28rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  margin-right: 16rpx;
  margin-bottom: 16rpx;
  display: inline-block;
  color: #444;
}

.result-title {
  font-weight: 600;
  font-size: 32rpx;
  margin-bottom: 32rpx;
  display: block;
}

.result-list {
  // 结果列表
}

.result-item {
  padding: 24rpx 16rpx;
  border-bottom: 1rpx solid #f0f0f0;
  transition: all 0.2s ease;

  &:last-child {
    border-bottom: none;
  }

  &:active {
    background-color: #f9f9f9;
  }
}

.poem-title {
  font-weight: 600;
  font-size: 32rpx;
  margin-bottom: 8rpx;
}

.poem-dynasty {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 16rpx;
}

.poem-preview {
  font-size: 28rpx;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 弹出层样式 */
.popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top-left-radius: 32rpx;
  border-top-right-radius: 32rpx;
  padding: 32rpx;
  transform: translateY(100%);
  transition: transform 0.3s;
  z-index: 200;
  max-height: 80vh;
  overflow-y: auto;

  &.show {
    transform: translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32rpx;
  padding-bottom: 16rpx;
  border-bottom: 1rpx solid #E2E8F0;
}

.popup-title {
  font-size: 32rpx;
  font-weight: 600;
}

.popup-close {
  font-size: 32rpx;
}

.popup-content {
  padding-bottom: 32rpx;
}

.detail-title {
  font-size: 40rpx;
  font-weight: bold;
  margin-bottom: 8rpx;
  text-align: center;
}

.detail-author {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 48rpx;
  text-align: center;
}

.detail-content {
  font-size: 36rpx;
  line-height: 1.8;
  margin-bottom: 48rpx;
  text-align: center;
}

.note-box {
  background: #F7FAFC;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 32rpx;
}

.note-title {
  font-weight: 600;
  font-size: 28rpx;
  margin-bottom: 16rpx;
}

.note-content {
  font-size: 28rpx;
  line-height: 1.6;
  color: #4A5568;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 16rpx;
}

.action-btn {
  background: #f0f0f0;
  color: #333;
  border-radius: 16rpx;
  padding: 16rpx 32rpx;
  font-size: 28rpx;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon {
  margin-right: 8rpx;
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 199;

  &.show {
    opacity: 1;
    visibility: visible;
  }
} 